// 首页相关路由
import Layout from '@/views/Layout/index.vue'
import Dashboard from '@/views/Home/Dashboard/dashboard.vue'
import BannerList from '@/views/Home/Banner/list.vue'
import BannerCreate from '@/views/Home/Banner/create.vue'
import AboutList from '@/views/Home/About/list.vue'

// /home/about/list
export default {
  path: '/home',
  component: Layout,
  redirect: '/home/dashboard',
  meta: {
    title: '首页',
    icon: 'HomeFilled'
  },
  children: [
    {
      path: 'dashboard',
      component: Dashboard,
      name: 'dashaborad',
      meta: {
        title: '仪表盘'
      }
    },
    {
      path: 'banner/list',
      component: BannerList,
      name: 'bannerList',
      meta: {
        title: '轮播图管理'
      }
    },
    {
      path: 'banner/create',
      component: BannerCreate,
      name: 'bannerCreate',
      hidden: true,
      meta: {
        title: '轮播图创建'
      }
    },
    {
      path: 'about/list',
      component: AboutList,
      name: 'aboutList',
      meta: {
        title: '企业特色管理'
      }
    }
  ]
}
